package cn.stylefeng.guns.modular.cb.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author ss
 * @since 2021-01-19
 */
@TableName("cb_messages")
public class CbMessages implements Serializable {

    private static final long serialVersionUID=1L;

      @TableId(value = "id", type = IdType.ID_WORKER)
    private Long id;

    /**
     * 消息内容
     */
    @TableField("message")
    private String message;

    /**
     * 消息状态0未读 1已读
     */
    @TableField("status")
    private Long status;

    /**
     * 创建时间
     */
      @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 创建人
     */
      @TableField(value = "create_user", fill = FieldFill.INSERT)
    private Long createUser;

    /**
     * 更新时间
     */
      @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    /**
     * 更新人
     */
      @TableField(value = "update_user", fill = FieldFill.UPDATE)
    private Long updateUser;

    /**
     * 乐观锁
     */
    @TableField("version")
    private Long version;

    /**
     * 消息接收人
     */
    @TableField("message_userid")
    private Long messageUserid;

    /**
     * 消息发送人
     */
    @TableField("send_userid")
    private Long sendUserid;

    /**
     * 事件ID
     */
    @TableField("event_id")
    private Long eventid;


    /**
     * 消息类型
     * 0简历投递
     * 1关注
     * 2收藏
     * 3获取联系方式
     * 4员工申请
     * 5员工退出
     * 6邀请投递简历
     * 7拒绝员工消息
     * 8新学长加入
     * 9系统消息
     */
    @TableField("type")
    private Long type;

    public Long getSendUserid() {
        return sendUserid;
    }

    public void setSendUserid(Long sendUserid) {
        this.sendUserid = sendUserid;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Long getStatus() {
        return status;
    }

    public void setStatus(Long status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Long getCreateUser() {
        return createUser;
    }

    public void setCreateUser(Long createUser) {
        this.createUser = createUser;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Long getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(Long updateUser) {
        this.updateUser = updateUser;
    }

    public Long getVersion() {
        return version;
    }

    public void setVersion(Long version) {
        this.version = version;
    }

    public Long getMessageUserid() {
        return messageUserid;
    }

    public void setMessageUserid(Long messageUserid) {
        this.messageUserid = messageUserid;
    }

    public Long getType() {
        return type;
    }

    public void setType(Long type) {
        this.type = type;
    }

    public Long getEventid() {
        return eventid;
    }

    public void setEventid(Long eventid) {
        this.eventid = eventid;
    }

    @Override
    public String toString() {
        return "CbMessages{" +
                "id=" + id +
                ", message='" + message + '\'' +
                ", status=" + status +
                ", createTime=" + createTime +
                ", createUser=" + createUser +
                ", updateTime=" + updateTime +
                ", updateUser=" + updateUser +
                ", version=" + version +
                ", messageUserid=" + messageUserid +
                ", sendUserid=" + sendUserid +
                ", eventid=" + eventid +
                ", type=" + type +
                '}';
    }
}
